package com.victor.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.victor.entity.collection.Collections;

@Mapper
public interface CollectionDao {
	/**
	 * 查询我是否收藏
	 * @param collections
	 * @return
	 */
	@Select({"select * from collections where pid=#{pid} and uid=#{uid}"})
	Collections selCollection(Collections collections);
	/**
	 * 添加收藏
	 * @param collections
	 * @return
	 */
	boolean insertCollection(Collections collections);
	/**
	 * 删除收藏
	 * @param id
	 * @return
	 */
	boolean delCollection(Integer id);

}
